package com.atguigu.bridge;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: 直立样式手机
 * @create: 2022-02-16 11:09
 **/
public class UpRightPhone extends Phone{
    /**
     * 构造器
     * @param brand 品牌 - 接口
     */
    public UpRightPhone(Brand brand) {
        //调用父类的构造器，把Brand传给父类Phone
        super(brand);
    }

    @Override
    protected void open() {
        super.open();
        System.out.println("直立样式手机");
    }

    @Override
    protected void close() {
        super.close();
        System.out.println("直立样式手机");
    }

    @Override
    protected void call() {
        super.call();
        System.out.println("直立样式手机");
    }
}
